<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name = "viewport" content = "user-scalable=no, width=device-width">{% if page_description %}
    <meta name="description" content="{{ page_description }}">{% endif %} {% if site_author %}
    <meta name="author" content="{{ site_author }}">{% endif %} {% if canonical_url %}
    <link rel="canonical" href="{{ canonical_url }}">{% endif %} {% if favicon %}
    <link rel="shortcut icon" href="{{ base_url }}/{{ favicon }}">{% else %}
    <link rel="shortcut icon" href="{{ base_url }}/img/favicon.ico">{% endif %}

    <title>
        {% block page_title %}
        {% if page_title %}{{ page_title }} - {% endif %}{{ site_name }}
        {% endblock %}
    </title>

    <link href="{{ base_url }}/css/bootstrap-custom.css" rel="stylesheet">
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet">
    <link rel="stylesheet" href="//cdn.jsdelivr.net/font-hack/2.018/css/hack.min.css">

    <link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,600,700|Lato:200,300italic,400italic,700italic,400,300,600,700|Roboto:300&subset=latin-ext,latin' rel='stylesheet' type='text/css'>

    <link href="{{ base_url }}/css/base.css" rel="stylesheet">
    <link href="{{ base_url }}/css/cinder.css" rel="stylesheet">
    <link rel="stylesheet" href="{{ base_url }}/css/highlight.css">{%- for path in extra_css %}


    <link href="{{ path }}" rel="stylesheet">{%- endfor %}

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
            <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
            <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
        <![endif]-->

    {% if google_analytics %}
    <script>
    (function(i, s, o, g, r, a, m) {
        i['GoogleAnalyticsObject'] = r;
        i[r] = i[r] || function() {
            (i[r].q = i[r].q || []).push(arguments)
        }, i[r].l = 1 * new Date();
        a = s.createElement(o),
        m = s.getElementsByTagName(o)[0];
        a.async = 1;
        a.src = g;
        m.parentNode.insertBefore(a, m)
    })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

    ga('create', '{{ google_analytics[0] }}', '{{ google_analytics[1] }}');
    ga('send', 'pageview');
    </script>
    {% endif %}
</head>

<body{% if current_page and current_page.is_homepage %} class="homepage" {% endif %}>
    <div class="topbar">
        <div class="container">
            <div class="topbar-contents">
                <div>
                    <img class="brand-logo" src="/images/logo_vectors.svg"></img>
                    <a class="brand" href="https://pagedraw.io/">Pagedraw</a>
                </div>
                <div class="hidden-xs">
                    <a href="/">Documentation</a>
                    <div class="topbar-spacer-55"></div>
                    <a href="https://pagedraw.io/tutorials/basics">Tutorial</a>
                    <div class="topbar-spacer-55"></div>
                    <a href="https://medium.com/pagedraw">Blog</a>
                </div>
                <div class="hidden-xs">
                    <a href="https://pagedraw.io/apps/">Sign in →</a>
                </div>
            </div>
        </div>
    </div>

    <div class="container">
        {% block content %}
        <div class="col-md-8" role="main">
            {% include "content.html" %}

            <div class="prev-next-footer">
                <hr />
                {% include "next-prev.html" %}
            </div>
        </div>
        <div class="col-md-offset-1 col-md-3">
            <div class="bs-sidebar">
                <a class="search-button" href="#" data-toggle="modal" data-target="#mkdocs_search_modal">
                    <i class="fa fa-search"></i> Search
                </a>

                <!-- Collapsed navigation -->
                <div>
                    <!-- Expander button -->
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>

                    <!-- Main title -->
                    <strong>{{ site_name }}</strong>
                </div>

                <!-- Expanded navigation -->
                <div class="navbar-collapse collapse">
                    <!-- Main navigation -->
                    <ul class="navigation">
                    {% for nav_item in nav %}
                        {% include "nav-sub.html" %}
                    {% endfor %}
                    </ul>

                    {% include "next-prev.html" %}
                </div>
            </div>
        </div>
        {% endblock %}
    </div>

    <script src="{{ base_url }}/js/jquery-1.10.2.min.js"></script>
    <script src="{{ base_url }}/js/bootstrap-3.0.3.min.js"></script>
    <script src="{{ base_url }}/js/highlight.pack.js"></script>
    <script>hljs.initHighlightingOnLoad();</script>
    <script>
    var base_url = '{{ base_url }}';
    </script>
    <script data-main="{{ base_url }}/mkdocs/js/search.js" src="{{ base_url }}/mkdocs/js/require.js"></script>
    <script src="{{ base_url }}/js/base.js"></script>
    {%- for path in extra_javascript %}
    <script src="{{ path }}"></script>
    {%- endfor %}

    <div class="modal" id="mkdocs_search_modal" tabindex="-1" role="dialog" aria-labelledby="Search Modal" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal">
                        <span aria-hidden="true">&times;</span>
                        <span class="sr-only">Close</span>
                    </button>
                    <h4 class="modal-title" id="exampleModalLabel">Search</h4>
                </div>
                <div class="modal-body">
                    <p>
                        From here you can search these documents. Enter your search terms below.
                    </p>
                    <form role="form">
                        <div class="form-group">
                            <input type="text" class="form-control" placeholder="Search..." id="mkdocs-search-query">
                        </div>
                    </form>
                    <div id="mkdocs-search-results"></div>
                </div>
                <div class="modal-footer">
                </div>
            </div>
        </div>
    </div>

    </body>

</html>
{% if current_page and current_page.is_homepage %}
<!--
MkDocs version : {{ mkdocs_version }}
Build Date UTC : {{ build_date_utc }}
-->
{% endif %}
